<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="org.osee.administration.service.*"%>
<%@ page import="org.osee.administration.domain.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="admin/styles/style.css" type="text/css" />
<link rel="stylesheet" href="admin/styles/record.css" type="text/css" />
<meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
<title>OSee观点搜索引擎 - 用户日志管理</title>
<script type="text/javascript" src="admin/script/record.js"></script>
</head>
<body>

<%
	String time = (String) request.getAttribute("time");
	int currentPage = (Integer) request.getAttribute("page");
	List<QueryRecord> qrList = null;
	try {
		qrList = (List<QueryRecord>)request.getAttribute("rList");
	} catch (Exception e){
		e.printStackTrace();
		qrList = new ArrayList<QueryRecord>();
	} finally {
		if (qrList == null) {
			qrList = new ArrayList<QueryRecord>();
		}
	}
	
	int totalNumber = (Integer)request.getAttribute("totalNumber");
	int number = (Integer) request.getAttribute("number");
%>
<div id="container"><%@ include file="inc/header.inc"%>
<div class="clr"></div>
<%@ include file="inc/menu.inc"%>

<div id="admin_content">
<div id="banner">
<div class="banner-c1"></div>
<div class="banner-text" style="width: 100px;">用户日志管理</div>
<div class="banner-c2"></div>
</div>
<!-- siderbar   start -->
<div id="new_ad" class="new_sth">
<div class="ad-left-top">
<div class="bar1-left"></div>
<div class="bar1-right"></div>
</div>
<div id="siderContent">
	<ul style="text-align: right; padding-bottom: 480px; padding-top: 5px;">
		<li style="float: right;" title="请输入关键字">
		<form action="admin-searchRecord.htm" method="post"><input type="text" name="keyword"
			style="width: 65px; font-size: 11px;" /> <input type="submit"
			value="搜索日志" style="font-size: 11px;" /></form>
		</li>
		<li style="float:right;" title="时间格式:2009-05-01">
			<form action="admin-record.htm" method="post">
				<input type="text" name="time" style="width:65px; font-size:11px;" />
				<input type="submit" value="提交查看" style="font-size:11px" />
			</form>
		</li>
		<li style="float: left">
			<ul id="recordList">
			<%
				int i = 0;
				for(QueryRecord qr: qrList){
					i++;
			%>
				<li style="border-bottom:1px dashed #cccccc; width:185px;">
					<table>
						<tr>
							<td width="20px" title="序号"><%=i %></td><td width="100px" title="<%=qr.getQueryStr() %>"><%=qr.getQueryStr() %></td><td width="100px" title="<%=qr.getDatetime() %>"><%=qr.getDatetime() %></td><td width="50px" title="<%=qr.getUserIp() %>"><%=qr.getUserIp() %></td>
						</tr>
					</table>
				</li>
			<%} %>
			</ul>
		</li>
		<li><span class="changePage" style="padding: 3px 16px 3px 16px; float:left; border:1px solid #999999; margin-left:50px;"><a href="admin-record.htm?time=<%=time %>&currentPage=<%=currentPage - 1 %>">&laquo;</a></span><span class="changePage" style="padding: 3px 16px 3px 16px; margin-right:60px; float:right; border:1px solid #999999"><a href="admin-record.htm?time=<%=time %>&currentPage=<%=currentPage + 1 %>">&raquo;</a></span></li>
	</ul>
</div>
</div>
<!-- siderbar   end --> <!-- formList start -->
<div id="admin_ctt_list">
<div class="ad-right-top">
<div class="bar2-left"></div>
<div class="bar2-center"></div>
<div class="bar2-right"></div>
</div>
<div id="formContent">
<div style="margin-left:13px">
	<div class="inner-block">
		<div class="bar-text">搜索引擎运行基本信息</div>
		<div class="inner-header">
			<div class="bar-c1"></div>
			<div class="bar-c2"></div>
		</div>
		<div class="inner-content">
			<ul style="margin-left:14px; padding-bottom:10px; font-size:12px">
				<li>搜索引擎接受查询的次数：<%=totalNumber %></li>
				<li style="margin-top:5px;">该天目前为止，搜索引擎接受查询的次数：<%=number %></li>
			</ul>
		</div>
	</div>
</div>
<div id="frame"><iframe src="admin-stockWelcome.htm" frameborder="0" id="iframe" name="iframe"></iframe></div>
</div>
</div>
<!-- formList end -->
<div class="clr"></div>
</div>
<div class="clr"></div>
<div id="footer"><span id="misc_info">&copy; 2009
武汉大学,保留所有权利 | <a target="_blank" href="">联系我们</a> | <a target="_blank"
	href="">隐私条款</a> | <a target="_blank" href="">使用说明</a> </span> <span
	id="version_info"> <a target="_blank" href="">武汉大学</a> | DEMO </span><br />
</div>
</div>
</body>
</html>
